﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vCheckMove
	/// </summary>
	[Serializable]
	public class vCheckMove : Entity 
	{ 
		 public vCheckMove() 
            : base("vCheckMove") 
        { 

        }


		#region Model
		private int _UID;
		private string _CheckMoveNo;
		private string _CheckMoveDate;
		private string _CheckMoveStatus;
		private string _CHECKNO;
		private string _DeptCodeFM;
		private string _DeptCodeTO;
		private bool? _IsCommit;
		private string _CommitDate;
		private string _UserCommit;
		private int? _UserCommitID;
		private bool? _IsConfirm;
		private int? _UserConfirmID;
		private string _UserConfirm;
		private string _ConfirmDate;
		private string _Note;
		private bool? _IsSelect;
		private int? _UserCreateID;
		private string _UserCreate;
		private string _CreateDate;
		private int? _UserModifyID;
		private string _UserModify;
		private string _ModifyDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckMoveNo
		{
			get{ return _CheckMoveNo; }
			set
			{
				this.OnPropertyValueChange(_.CheckMoveNo,_CheckMoveNo,value);
				this._CheckMoveNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckMoveDate
		{
			get{ return _CheckMoveDate; }
			set
			{
				this.OnPropertyValueChange(_.CheckMoveDate,_CheckMoveDate,value);
				this._CheckMoveDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckMoveStatus
		{
			get{ return _CheckMoveStatus; }
			set
			{
				this.OnPropertyValueChange(_.CheckMoveStatus,_CheckMoveStatus,value);
				this._CheckMoveStatus = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CHECKNO
		{
			get{ return _CHECKNO; }
			set
			{
				this.OnPropertyValueChange(_.CHECKNO,_CHECKNO,value);
				this._CHECKNO = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCodeFM
		{
			get{ return _DeptCodeFM; }
			set
			{
				this.OnPropertyValueChange(_.DeptCodeFM,_DeptCodeFM,value);
				this._DeptCodeFM = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCodeTO
		{
			get{ return _DeptCodeTO; }
			set
			{
				this.OnPropertyValueChange(_.DeptCodeTO,_DeptCodeTO,value);
				this._DeptCodeTO = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsCommit
		{
			get{ return _IsCommit; }
			set
			{
				this.OnPropertyValueChange(_.IsCommit,_IsCommit,value);
				this._IsCommit = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CommitDate
		{
			get{ return _CommitDate; }
			set
			{
				this.OnPropertyValueChange(_.CommitDate,_CommitDate,value);
				this._CommitDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCommit
		{
			get{ return _UserCommit; }
			set
			{
				this.OnPropertyValueChange(_.UserCommit,_UserCommit,value);
				this._UserCommit = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCommitID
		{
			get{ return _UserCommitID; }
			set
			{
				this.OnPropertyValueChange(_.UserCommitID,_UserCommitID,value);
				this._UserCommitID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsConfirm
		{
			get{ return _IsConfirm; }
			set
			{
				this.OnPropertyValueChange(_.IsConfirm,_IsConfirm,value);
				this._IsConfirm = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserConfirmID
		{
			get{ return _UserConfirmID; }
			set
			{
				this.OnPropertyValueChange(_.UserConfirmID,_UserConfirmID,value);
				this._UserConfirmID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserConfirm
		{
			get{ return _UserConfirm; }
			set
			{
				this.OnPropertyValueChange(_.UserConfirm,_UserConfirm,value);
				this._UserConfirm = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ConfirmDate
		{
			get{ return _ConfirmDate; }
			set
			{
				this.OnPropertyValueChange(_.ConfirmDate,_ConfirmDate,value);
				this._ConfirmDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Note
		{
			get{ return _Note; }
			set
			{
				this.OnPropertyValueChange(_.Note,_Note,value);
				this._Note = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsSelect
		{
			get{ return _IsSelect; }
			set
			{
				this.OnPropertyValueChange(_.IsSelect,_IsSelect,value);
				this._IsSelect = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCreate
		{
			get{ return _UserCreate; }
			set
			{
				this.OnPropertyValueChange(_.UserCreate,_UserCreate,value);
				this._UserCreate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserModifyID
		{
			get{ return _UserModifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserModifyID,_UserModifyID,value);
				this._UserModifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserModify
		{
			get{ return _UserModify; }
			set
			{
				this.OnPropertyValueChange(_.UserModify,_UserModify,value);
				this._UserModify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.CheckMoveNo,
				_.CheckMoveDate,
				_.CheckMoveStatus,
				_.CHECKNO,
				_.DeptCodeFM,
				_.DeptCodeTO,
				_.IsCommit,
				_.CommitDate,
				_.UserCommit,
				_.UserCommitID,
				_.IsConfirm,
				_.UserConfirmID,
				_.UserConfirm,
				_.ConfirmDate,
				_.Note,
				_.IsSelect,
				_.UserCreateID,
				_.UserCreate,
				_.CreateDate,
				_.UserModifyID,
				_.UserModify,
				_.ModifyDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_CheckMoveNo,
				_CheckMoveDate,
				_CheckMoveStatus,
				_CHECKNO,
				_DeptCodeFM,
				_DeptCodeTO,
				_IsCommit,
				_CommitDate,
				_UserCommit,
				_UserCommitID,
				_IsConfirm,
				_UserConfirmID,
				_UserConfirm,
				_ConfirmDate,
				_Note,
				_IsSelect,
				_UserCreateID,
				_UserCreate,
				_CreateDate,
				_UserModifyID,
				_UserModify,
				_ModifyDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "CheckMoveNo":
                    this._CheckMoveNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckMoveDate":
                    this._CheckMoveDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CheckMoveStatus":
                    this._CheckMoveStatus = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CHECKNO":
                    this._CHECKNO = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptCodeFM":
                    this._DeptCodeFM = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptCodeTO":
                    this._DeptCodeTO = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsCommit":
                    this._IsCommit = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "CommitDate":
                    this._CommitDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserCommit":
                    this._UserCommit = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserCommitID":
                    this._UserCommitID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "IsConfirm":
                    this._IsConfirm = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserConfirmID":
                    this._UserConfirmID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserConfirm":
                    this._UserConfirm = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ConfirmDate":
                    this._ConfirmDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Note":
                    this._Note = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsSelect":
                    this._IsSelect = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserCreate":
                    this._UserCreate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserModifyID":
                    this._UserModifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserModify":
                    this._UserModify = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "CheckMoveNo":
                    return this._CheckMoveNo; 
				case "CheckMoveDate":
                    return this._CheckMoveDate; 
				case "CheckMoveStatus":
                    return this._CheckMoveStatus; 
				case "CHECKNO":
                    return this._CHECKNO; 
				case "DeptCodeFM":
                    return this._DeptCodeFM; 
				case "DeptCodeTO":
                    return this._DeptCodeTO; 
				case "IsCommit":
                    return this._IsCommit; 
				case "CommitDate":
                    return this._CommitDate; 
				case "UserCommit":
                    return this._UserCommit; 
				case "UserCommitID":
                    return this._UserCommitID; 
				case "IsConfirm":
                    return this._IsConfirm; 
				case "UserConfirmID":
                    return this._UserConfirmID; 
				case "UserConfirm":
                    return this._UserConfirm; 
				case "ConfirmDate":
                    return this._ConfirmDate; 
				case "Note":
                    return this._Note; 
				case "IsSelect":
                    return this._IsSelect; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "UserCreate":
                    return this._UserCreate; 
				case "CreateDate":
                    return this._CreateDate; 
				case "UserModifyID":
                    return this._UserModifyID; 
				case "UserModify":
                    return this._UserModify; 
				case "ModifyDate":
                    return this._ModifyDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vCheckMove");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","vCheckMove","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckMoveNo = new Field("CheckMoveNo","vCheckMove","CheckMoveNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckMoveDate = new Field("CheckMoveDate","vCheckMove","CheckMoveDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CheckMoveStatus = new Field("CheckMoveStatus","vCheckMove","CheckMoveStatus");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CHECKNO = new Field("CHECKNO","vCheckMove","CHECKNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCodeFM = new Field("DeptCodeFM","vCheckMove","DeptCodeFM");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCodeTO = new Field("DeptCodeTO","vCheckMove","DeptCodeTO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsCommit = new Field("IsCommit","vCheckMove","IsCommit");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CommitDate = new Field("CommitDate","vCheckMove","CommitDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCommit = new Field("UserCommit","vCheckMove","UserCommit");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCommitID = new Field("UserCommitID","vCheckMove","UserCommitID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsConfirm = new Field("IsConfirm","vCheckMove","IsConfirm");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserConfirmID = new Field("UserConfirmID","vCheckMove","UserConfirmID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserConfirm = new Field("UserConfirm","vCheckMove","UserConfirm");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ConfirmDate = new Field("ConfirmDate","vCheckMove","ConfirmDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Note = new Field("Note","vCheckMove","Note");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsSelect = new Field("IsSelect","vCheckMove","IsSelect");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","vCheckMove","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreate = new Field("UserCreate","vCheckMove","UserCreate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","vCheckMove","CreateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModifyID = new Field("UserModifyID","vCheckMove","UserModifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModify = new Field("UserModify","vCheckMove","UserModify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","vCheckMove","ModifyDate");
		}
		#endregion

 
	}
}

